package com.ruoyi.common.config;

import lombok.Data;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "api.notice")
public class EmailConfig {

    private static String baseUrl;
    private static String appId;
    private static String apiKey;
    private static String sendEmailUrl;
    private static String sendFeishuUrl;
    private static String andonFeishuName;

    private static String loanCompensateAddress;
    private static String loanCompensateCc;

    //按灯预警邮箱地址
    private static String andonAddress;

    // 反馈邮件的发件人
    private static String feedBackAddress;

    private static String loanAddress;
    private static String loanCc;

    private static String monifyOrderAddress;
    private static String monifyOrderCc;


    public static String getBaseUrl() {
        return baseUrl;
    }

    public static String getAppId() {
        return appId;
    }

    public static String getApiKey() {
        return apiKey;
    }

    public static String getSendEmailUrl() {
        return sendEmailUrl;
    }

    public static String getSendFeishuUrl() {
        return sendFeishuUrl;
    }

    public static String getAndonFeishuName() {
        return andonFeishuName;
    }

//    public static String getSubject() {
//        return subject;
//    }

    public static String getAndonAddress() {
        return andonAddress;
    }

    public static String getFeedBackAddress() {
        return feedBackAddress;
    }

    public static String getLoanAddress() {
        return loanAddress;
    }

    public static String getLoanCc() {
        return loanCc;
    }

    public void setLoanAddress(String loanAddress) {
        EmailConfig.loanAddress = loanAddress;
    }

    public void setLoanCc(String loanCc) {
        EmailConfig.loanCc = loanCc;
    }

    public void setBaseUrl(String baseUrl) {
        EmailConfig.baseUrl = baseUrl;
    }

    public void setAppId(String appId) {
        EmailConfig.appId = appId;
    }

    public void setApiKey(String apiKey) {
        EmailConfig.apiKey = apiKey;
    }

    public void setSendEmailUrl(String sendEmailUrl) {
        EmailConfig.sendEmailUrl = sendEmailUrl;
    }

    public void setSendFeishuUrl(String sendFeishuUrl) {
        EmailConfig.sendFeishuUrl = sendFeishuUrl;
    }

    public void setAndonFeishuName(String andonFeishuName) {
        EmailConfig.andonFeishuName = andonFeishuName;
    }

//    public void setSubject(String subject) {
//        EmailConfig.subject = subject;
//    }

    public void setAndonAddress(String andonAddress) {
        EmailConfig.andonAddress = andonAddress;
    }

    public void setFeedBackAddress(String feedBackAddress) {
        EmailConfig.feedBackAddress = feedBackAddress;
    }

    public void setLoanCompensateAddress(String loanCompensateAddress) {
        EmailConfig.loanCompensateAddress = loanCompensateAddress;
    }

    public static String getLoanCompensateAddress() {
        return loanCompensateAddress;
    }


    public static String getLoanCompensateCc() {
        return loanCompensateCc;
    }

    public void setLoanCompensateCc(String loanCompensateCc) {
        EmailConfig.loanCompensateCc = loanCompensateCc;
    }

    public static String getMonifyOrderCc() {
        return monifyOrderCc;
    }

    public void setMonifyOrderCc(String monifyOrderCc) {
        EmailConfig.monifyOrderCc = monifyOrderCc;
    }

    public static String getMonifyOrderAddress() {
        return monifyOrderAddress;
    }

    public void setMonifyOrderAddress(String monifyOrderAddress) {
        EmailConfig.monifyOrderAddress = monifyOrderAddress;
    }

}
